Skip to content

Revert crontask changes#178

Merged
amureki merged 3 commits intomainfrom
revert-crontask
Mar 16, 2026
Merged

Revert crontask changes#178
amureki merged 3 commits intomainfrom
revert-crontask

Conversation

@codingjoe
Copy link
Copy Markdown
Collaborator

Somehow the crontask commits made it into this repo. I checked; I don't have a second remote setup. I don't really know how it happened, but those 3 commits need to go.
Sorry for the inconvenience.

@codingjoe codingjoe requested review from amureki and Copilot and removed request for Copilot March 16, 2026 09:27
@amureki
Copy link
Copy Markdown
Member

amureki commented Mar 16, 2026

@codingjoe thanks! Could you address failing checks?

Copilot AI review requested due to automatic review settings March 16, 2026 09:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes accidental crontask/django-tasks remnants and standardizes the repo around dramatiq_crontab (Dramatiq-based scheduling), updating tests, packaging metadata, and CI accordingly.

Changes:

  • Replace remaining crontask imports/settings/command usage with dramatiq_crontab equivalents.
  • Update project metadata (package name/module path, supported Python/Django versions) and CI matrix.
  • Refresh docs/assets to match the Dramatiq Crontab identity.

Reviewed changes

Copilot reviewed 18 out of 24 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tests/testapp/tasks.py Switch test app task decoration/imports to Dramatiq + dramatiq_crontab.cron.
tests/testapp/settings.py Replace CRONTASK/django-tasks settings with DRAMATIQ_CRONTAB and configure a stub broker for tests.
tests/test_utils.py Update test imports from crontask to dramatiq_crontab.
tests/test_tasks.py Update scheduler/task imports and heartbeat invocation to Dramatiq-based tasks.
tests/test_commands.py Rename management command usage to crontab and update lock key expectations.
pyproject.toml Rename distribution/module, expand supported Python/Django, and update dependencies/extras.
images/logo-light.svg Remove old logo asset tied to previous branding.
images/logo-dark.svg Remove old logo asset tied to previous branding.
dramatiq_crontab/utils.py Fix config import and update Redis lock name.
dramatiq_crontab/tasks.py Add Dramatiq heartbeat actor scheduled via cron.
dramatiq_crontab/management/commands/crontab.py Update imports/job naming/app-skip logic to dramatiq_crontab.
dramatiq_crontab/conf.py Read configuration from DRAMATIQ_CRONTAB setting.
dramatiq_crontab/init.py Adapt decorators to work with Dramatiq actors (actor.send, actor.fn).
README.md Update documentation and badges for dramatiq-crontab usage/branding.
LICENSE Update copyright header.
.gitignore Update ignored version file path for renamed module.
.github/workflows/ci.yml Update supported Python/Django matrix to align with new constraints.
.github/dependabot.yml Increase Dependabot update frequency (weekly → daily).
.github/FUNDING.yml Add funding configuration.
.github/CODEOWNERS Add code ownership rules for key files.
Comments suppressed due to low confidence (1)

tests/test_tasks.py:15

  • tasks.heartbeat is a Dramatiq actor; calling it (tasks.heartbeat()) enqueues a message and will not execute the function body, so the expected log line won't be emitted. For this test, call the underlying function (e.g., tasks.heartbeat.fn()) or explicitly run/process the queued message with the stub broker before asserting on logs.


def test_cron__stars():
    assert not scheduler.remove_all_jobs()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread pyproject.toml
Comment thread pyproject.toml
Comment thread README.md
Comment thread README.md
Comment thread tests/test_tasks.py
@codingjoe
Copy link
Copy Markdown
Collaborator Author

codingjoe commented Mar 16, 2026

@codingjoe thanks! Could you address failing checks?

My main was a couple of commits behind. I redid the revert.

@amureki amureki merged commit 365bb77 into main Mar 16, 2026
41 checks passed
@amureki amureki deleted the revert-crontask branch March 16, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants